var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var accruedModel = require('../../app/models/accruedModel.js');
var config = require('../config');

suite('测试accrueModel', function () {
    var accrue_model;
    setup(function (done) {
        accruedModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            accrue_model = model;
            accrue_model.toJSON();
            done();
        });
    });

    suite('addReceiveVipLevel', function () {
        test('添加已经领取vip等级', function () {
            // console.log('accrue_model;', accrue_model.current_task_list);
            accrue_model.addStaticList(1, 5000);

            // console.log(accrue_model.getStaticList(1));
            accrue_model.save();
        });
    });
});
